package model;

public class PhiKsi {
	
	static double temp=0;
	public static double imagem(int indiceLocal,double ksi){
		if(ksi>=-1 && ksi<=1){
			if(indiceLocal==1){
				return temp=(1-ksi)/2;
			}else{
				return (1+ksi)/2;
			}
		}else{
			System.out.println("valor invalido");
			return 0;
		}
	}
	
	public static double derivada(int indiceLocal,double ksi){
		if(ksi>=-1 && ksi<=1){
			if(indiceLocal==1){
				return -0.5;
			}else{
				return 0.5;
			}
		}else{
			System.out.println("valor invalido");
			return 0;
		}
	}
}
